
<!DOCTYPE HTML>
<html lang="" >
    <head>
        <meta charset="UTF-8">
        <meta content="text/html; charset=utf-8" http-equiv="Content-Type">
        <title>3.HTML 元素 · GitBook</title>
        <meta http-equiv="X-UA-Compatible" content="IE=edge" />
        <meta name="description" content="">
        <meta name="generator" content="GitBook 3.2.3">
        
        
        
    
    <link rel="stylesheet" href="../gitbook/style.css">

    
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-highlight/website.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-search/search.css">
                
            
                
                <link rel="stylesheet" href="../gitbook/gitbook-plugin-fontsettings/website.css">
                
            
        

    

    
        
    
        
    
        
    
        
    
        
    
        
    

        
    
    
    <meta name="HandheldFriendly" content="true"/>
    <meta name="viewport" content="width=device-width, initial-scale=1, user-scalable=no">
    <meta name="apple-mobile-web-app-capable" content="yes">
    <meta name="apple-mobile-web-app-status-bar-style" content="black">
    <link rel="apple-touch-icon-precomposed" sizes="152x152" href="../gitbook/images/apple-touch-icon-precomposed-152.png">
    <link rel="shortcut icon" href="../gitbook/images/favicon.ico" type="image/x-icon">

    
    <link rel="next" href="4-attritube.html" />
    
    

    </head>
    <body>
        
<div class="book">
    <div class="book-summary">
        
            
<div id="book-search-input" role="search">
    <input type="text" placeholder="Type to search" />
</div>

            
                <nav role="navigation">
                


<ul class="summary">
    
    

    

    
        
        
    
        <li class="chapter " data-level="1.1" >
            
                <span>
            
                    
                    入门
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.1.1" data-path="../">
            
                <a href="../">
            
                    
                    0.HTML 介绍
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.2" data-path="1-introduce.html">
            
                <a href="1-introduce.html">
            
                    
                    1.HTML 简介
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.1.3" data-path="2-basice.html">
            
                <a href="2-basice.html">
            
                    
                    2.HTML 基础
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.2" >
            
                <span>
            
                    
                    基础
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter active" data-level="1.2.1" data-path="3-element.html">
            
                <a href="3-element.html">
            
                    
                    3.HTML 元素
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.2" data-path="4-attritube.html">
            
                <a href="4-attritube.html">
            
                    
                    4.HTML 属性
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.3" data-path="5-title.html">
            
                <a href="5-title.html">
            
                    
                    5.HTML 标题
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.4" data-path="6-paragraph.html">
            
                <a href="6-paragraph.html">
            
                    
                    6.HTML 段落
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.5" data-path="7-textformat.html">
            
                <a href="7-textformat.html">
            
                    
                    7.HTML 文本格式化
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.6" data-path="8-link.html">
            
                <a href="8-link.html">
            
                    
                    8.HTML 超链接
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.7" data-path="9-head.html">
            
                <a href="9-head.html">
            
                    
                    9.HTML head
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.8" data-path="10-css.html">
            
                <a href="10-css.html">
            
                    
                    10.HTML CSS
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.9" data-path="11-imgs.html">
            
                <a href="11-imgs.html">
            
                    
                    11.HTML 图片
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.10" data-path="12-tables.html">
            
                <a href="12-tables.html">
            
                    
                    12.HTML 表格
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.11" data-path="13-list.html">
            
                <a href="13-list.html">
            
                    
                    13.HTML 列表
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.12" data-path="14-block.html">
            
                <a href="14-block.html">
            
                    
                    14.HTML 区块
            
                </a>
            

            
        </li>
    
        <li class="chapter " data-level="1.2.13" data-path="15-layouts.html">
            
                <a href="15-layouts.html">
            
                    
                    15.HTML 布局
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    
        <li class="chapter " data-level="1.3" >
            
                <span>
            
                    
                    其他
            
                </span>
            

            
            <ul class="articles">
                
    
        <li class="chapter " data-level="1.3.1" data-path="support.html">
            
                <a href="support.html">
            
                    
                    赞助/支持
            
                </a>
            

            
        </li>
    

            </ul>
            
        </li>
    

    

    <li class="divider"></li>

    <li>
        <a href="https://www.gitbook.com" target="blank" class="gitbook-link">
            Published with GitBook
        </a>
    </li>
</ul>


                </nav>
            
        
    </div>

    <div class="book-body">
        
            <div class="body-inner">
                
                    

<div class="book-header" role="navigation">
    

    <!-- Title -->
    <h1>
        <i class="fa fa-circle-o-notch fa-spin"></i>
        <a href=".." >3.HTML 元素</a>
    </h1>
</div>




                    <div class="page-wrapper" tabindex="-1" role="main">
                        <div class="page-inner">
                            
<div id="book-search-results">
    <div class="search-noresults">
    
                                <section class="normal markdown-section">
                                
                                <h1 id="html-&#x5143;&#x7D20;">HTML &#x5143;&#x7D20;</h1>
<p>html &#x6587;&#x6863;&#x7531; html &#x5143;&#x7D20;&#x5B9A;&#x4E49;&#x3002;  </p>
<table>
<thead>
<tr>
<th style="text-align:center">&#x5F00;&#x59CB;&#x6807;&#x7B7E;</th>
<th style="text-align:center">&#x5143;&#x7D20;&#x5185;&#x5BB9;</th>
<th style="text-align:center">&#x7ED3;&#x675F;&#x6807;&#x7B7E;</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align:center"><code>&lt;p&gt;</code></td>
<td style="text-align:center">&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x6BB5;&#x843D;</td>
<td style="text-align:center"><code>&lt;/p&gt;</code></td>
</tr>
<tr>
<td style="text-align:center"><code>&lt;a href=&quot;&quot;&gt;</code></td>
<td style="text-align:center">&#x8FD9;&#x662F;&#x4E00;&#x4E2A;&#x94FE;&#x63A5;</td>
<td style="text-align:center"><code>&lt;/a&gt;</code></td>
</tr>
<tr>
<td style="text-align:center"><code>&lt;br&gt;</code></td>
<td style="text-align:center">&#x6362;&#x884C;</td>
</tr>
</tbody>
</table>
<p>&#x5F00;&#x59CB;&#x6807;&#x7B7E;&#x5E38;&#x88AB;&#x79F0;&#x4E3A;<strong>&#x8D77;&#x59CB;&#x6807;&#x7B7E;&#xFF08;opening tag&#xFF09;</strong><br>&#x7ED3;&#x675F;&#x6807;&#x7B7E;&#x5E38;&#x88AB;&#x79F0;&#x4E3A;<strong>&#x95ED;&#x5408;&#x6807;&#x7B7E;&#xFF08;closing tag&#xFF09;</strong><br><strong>&#x6709;&#x4E9B;&#x7279;&#x6B8A;&#x7684;&#x6807;&#x7B7E;&#x88AB;&#x79F0;&#x4E3A;&#x5355;&#x6807;&#x7B7E;&#xFF0C;&#x4F8B;&#x5982;<code>&lt;br&gt;</code></strong>  </p>
<hr>
<h2 id="html-&#x5143;&#x7D20;&#x8BED;&#x6CD5;">html &#x5143;&#x7D20;&#x8BED;&#x6CD5;</h2>
<ul>
<li>html &#x5143;&#x7D20;&#x4EE5;<strong>&#x5F00;&#x59CB;&#x6807;&#x7B7E;</strong>&#x8D77;&#x59CB;  </li>
<li>html &#x5143;&#x7D20;&#x4EE5;<strong>&#x7ED3;&#x675F;&#x6807;&#x7B7E;</strong>&#x7EC8;&#x6B62;  </li>
<li><strong>&#x5143;&#x7D20;&#x7684;&#x5185;&#x5BB9;</strong>&#x662F;&#x5F00;&#x59CB;&#x6807;&#x7B7E;&#x4E0E;&#x7ED3;&#x675F;&#x6807;&#x7B7E;&#x4E4B;&#x95F4;&#x7684;&#x5185;&#x5BB9;  </li>
<li>&#x67D0;&#x4E9B; html &#x5143;&#x7D20;&#x5177;&#x6709;<strong>&#x7A7A;&#x5185;&#x5BB9;&#xFF08;empty content&#xFF09;</strong>  </li>
<li>&#x7A7A;&#x5143;&#x7D20;<strong>&#x5728;&#x5F00;&#x59CB;&#x6807;&#x7B7E;&#x4E2D;&#x8FDB;&#x884C;&#x5173;&#x95ED;</strong>&#xFF08;&#x4EE5;&#x5F00;&#x59CB;&#x6807;&#x7B7E;&#x7684;&#x7ED3;&#x675F;&#x800C;&#x7ED3;&#x675F;&#xFF09;  </li>
<li>&#x5927;&#x591A;&#x6570; html &#x5143;&#x7D20;&#x53EF;&#x6709;&#x7528;<strong>&#x5C5E;&#x6027;</strong>  </li>
</ul>
<hr>
<h2 id="&#x5D4C;&#x5957;&#x7684;-html-&#x5143;&#x7D20;">&#x5D4C;&#x5957;&#x7684; html &#x5143;&#x7D20;</h2>
<p>&#x5927;&#x591A;&#x6570; html &#x5143;&#x7D20;&#x53EF;&#x4EE5;&#x5D4C;&#x5957;&#xFF08;html&#x5143;&#x7D20;&#x53EF;&#x4EE5;&#x5305;&#x542B;&#x5176;&#x4ED6;html&#x5143;&#x7D20;&#xFF09;<br>html &#x6587;&#x6863;&#x7531;&#x76F8;&#x4E92;&#x5D4C;&#x5957;&#x7684; html &#x5143;&#x7D20;&#x6784;&#x6210;  </p>
<hr>
<h2 id="&#x4E0D;&#x8981;&#x5FD8;&#x8BB0;&#x7ED3;&#x675F;&#x6807;&#x7B7E;">&#x4E0D;&#x8981;&#x5FD8;&#x8BB0;&#x7ED3;&#x675F;&#x6807;&#x7B7E;</h2>
<p>&#x5373;&#x4F7F;&#x4F60;&#x5FD8;&#x8BB0;&#x4E86;&#x4F7F;&#x7528;&#x7ED3;&#x675F;&#x6807;&#x7B7E;&#xFF0C;&#x5927;&#x591A;&#x6570;&#x6D4F;&#x89C8;&#x5668;&#x4E5F;&#x4F1A;&#x6B63;&#x786E;&#x7684;&#x663E;&#x5F0F; html<br>&#x4F46;&#x662F;&#x4E0D;&#x8981;&#x4F9D;&#x8D56;&#x8FD9;&#x79CD;&#x505A;&#x6CD5;&#x3002;<br>&#x5FD8;&#x8BB0;&#x4F7F;&#x7528;&#x7ED3;&#x675F;&#x6807;&#x7B7E;&#x53EF;&#x80FD;&#x4F1A;&#x4EA7;&#x751F;&#x4E0D;&#x53EF;&#x9884;&#x6599;&#x7684;&#x7ED3;&#x679C;&#x6216;&#x9519;&#x8BEF;&#x3002;  </p>
<hr>
<h2 id="html-&#x7A7A;&#x5143;&#x7D20;">html &#x7A7A;&#x5143;&#x7D20;</h2>
<p>&#x6CA1;&#x6709;&#x5185;&#x5BB9;&#x7684; html &#x5143;&#x7D20;&#x88AB;&#x79F0;&#x4E3A;&#x7A7A;&#x5143;&#x7D20;&#x3002;&#x7A7A;&#x5143;&#x7D20;&#x662F;&#x5728;&#x5F00;&#x59CB;&#x6807;&#x7B7E;&#x4E2D;&#x5173;&#x95ED;&#x7684;&#x3002;<br><code>&lt;br&gt;</code> &#x5C31;&#x662F;&#x6CA1;&#x6709;&#x5173;&#x95ED;&#x6807;&#x7B7E;&#x7684;&#x7A7A;&#x5143;&#x7D20;&#xFF08;<code>&lt;br&gt;</code> &#x6807;&#x7B7E;&#x5B9A;&#x4E49;&#x6362;&#x884C;&#xFF09;&#x3002;<br>&#x5728; xhtml&#x3001;xml &#x4EE5;&#x53CA;&#x672A;&#x6765;&#x7248;&#x672C;&#x7684; html &#x4E2D;&#xFF0C;&#x6240;&#x6709;&#x5143;&#x7D20;&#x90FD;&#x5FC5;&#x987B;&#x88AB;&#x5173;&#x95ED;&#x3002;<br>&#x5728;&#x5F00;&#x59CB;&#x6807;&#x7B7E;&#x4E2D;&#x6DFB;&#x52A0;&#x659C;&#x6760;&#xFF0C;&#x6BD4;&#x5982; <code>&lt;br /&gt;</code>,&#x662F;&#x5173;&#x95ED;&#x7A7A;&#x5143;&#x7D20;&#x7684;&#x6B63;&#x786E;&#x65B9;&#x6CD5;&#xFF0C;html&#x3001;xhtml &#x548C; xml &#x90FD;&#x63A5;&#x53D7;&#x8FD9;&#x79CD;&#x65B9;&#x5F0F;&#x3002;<br>&#x5373;&#x4F7F;<code>&lt;br&gt;</code>&#x5728;&#x6240;&#x6709;&#x6D4F;&#x89C8;&#x5668;&#x4E2D;&#x90FD;&#x662F;&#x6709;&#x6548;&#x7684;&#xFF0C;&#x4F46;&#x4F7F;&#x7528; <code>&lt;br /&gt;</code> &#x5176;&#x5B9E;&#x662F;&#x66F4;&#x957F;&#x8FDC;&#x7684;&#x4FDD;&#x969C;&#x3002;  </p>
<hr>
<h2 id="html-&#x63D0;&#x793A;&#xFF1A;&#x4F7F;&#x7528;&#x5C0F;&#x5199;&#x6807;&#x7B7E;">html &#x63D0;&#x793A;&#xFF1A;&#x4F7F;&#x7528;&#x5C0F;&#x5199;&#x6807;&#x7B7E;</h2>
<p>html &#x6807;&#x7B7E;&#x5BF9;&#x5927;&#x5C0F;&#x5199;&#x4E0D;&#x654F;&#x611F;&#xFF1A; <code>&lt;P&gt;</code> &#x7B49;&#x540C;&#x4E8E; <code>&lt;p&gt;</code> &#x3002;<br>&#x8BB8;&#x591A;&#x7F51;&#x7AD9;&#x90FD;&#x4F7F;&#x7528;&#x5927;&#x5199;&#x7684; html &#x6807;&#x7B7E;&#x3002;<br>&#x4F46;&#x662F;&#x56E0;&#x4E3A;&#x4E07;&#x7EF4;&#x7F51;&#x8054;&#x76DF;&#xFF08;W3C&#xFF09;&#x5728; html 4 &#x4E2D;&#x63A8;&#x8350;&#x4F7F;&#x7528;&#x5C0F;&#x5199;&#xFF0C;&#x800C;&#x5728;&#x672A;&#x6765;(X)HTML &#x7248;&#x672C;&#x4E2D;&#x5F3A;&#x5236;&#x4F7F;&#x7528;&#x5C0F;&#x5199;&#x3002;  </p>

                                
                                </section>
                            
    </div>
    <div class="search-results">
        <div class="has-results">
            
            <h1 class="search-results-title"><span class='search-results-count'></span> results matching "<span class='search-query'></span>"</h1>
            <ul class="search-results-list"></ul>
            
        </div>
        <div class="no-results">
            
            <h1 class="search-results-title">No results matching "<span class='search-query'></span>"</h1>
            
        </div>
    </div>
</div>

                        </div>
                    </div>
                
            </div>

            
                
                
                <a href="4-attritube.html" class="navigation navigation-next navigation-unique" aria-label="Next page: 4.HTML 属性">
                    <i class="fa fa-angle-right"></i>
                </a>
                
            
        
    </div>

    <script>
        var gitbook = gitbook || [];
        gitbook.push(function() {
            gitbook.page.hasChanged({"page":{"title":"3.HTML 元素","level":"1.2.1","depth":2,"next":{"title":"4.HTML 属性","level":"1.2.2","depth":2,"path":"docs/4-attritube.md","ref":"./docs/4-attritube.md","articles":[]},"previous":{"title":"基础","level":"1.2","depth":1,"ref":"","articles":[{"title":"3.HTML 元素","level":"1.2.1","depth":2,"path":"docs/3-element.md","ref":"./docs/3-element.md","articles":[]},{"title":"4.HTML 属性","level":"1.2.2","depth":2,"path":"docs/4-attritube.md","ref":"./docs/4-attritube.md","articles":[]},{"title":"5.HTML 标题","level":"1.2.3","depth":2,"path":"docs/5-title.md","ref":"./docs/5-title.md","articles":[]},{"title":"6.HTML 段落","level":"1.2.4","depth":2,"path":"docs/6-paragraph.md","ref":"./docs/6-paragraph.md","articles":[]},{"title":"7.HTML 文本格式化","level":"1.2.5","depth":2,"path":"docs/7-textformat.md","ref":"./docs/7-textformat.md","articles":[]},{"title":"8.HTML 超链接","level":"1.2.6","depth":2,"path":"docs/8-link.md","ref":"./docs/8-link.md","articles":[]},{"title":"9.HTML head","level":"1.2.7","depth":2,"path":"docs/9-head.md","ref":"./docs/9-head.md","articles":[]},{"title":"10.HTML CSS","level":"1.2.8","depth":2,"path":"docs/10-css.md","ref":"./docs/10-css.md","articles":[]},{"title":"11.HTML 图片","level":"1.2.9","depth":2,"path":"docs/11-imgs.md","ref":"./docs/11-imgs.md","articles":[]},{"title":"12.HTML 表格","level":"1.2.10","depth":2,"path":"docs/12-tables.md","ref":"./docs/12-tables.md","articles":[]},{"title":"13.HTML 列表","level":"1.2.11","depth":2,"path":"docs/13-list.md","ref":"./docs/13-list.md","articles":[]},{"title":"14.HTML 区块","level":"1.2.12","depth":2,"path":"docs/14-block.md","ref":"./docs/14-block.md","articles":[]},{"title":"15.HTML 布局","level":"1.2.13","depth":2,"path":"docs/15-layouts.md","ref":"./docs/15-layouts.md","articles":[]}]},"dir":"ltr"},"config":{"gitbook":"*","theme":"default","variables":{},"plugins":["livereload"],"pluginsConfig":{"livereload":{},"highlight":{},"search":{},"lunr":{"maxIndexSize":1000000,"ignoreSpecialCharacters":false},"sharing":{"facebook":true,"twitter":true,"google":false,"weibo":false,"instapaper":false,"vk":false,"all":["facebook","google","twitter","weibo","instapaper"]},"fontsettings":{"theme":"white","family":"sans","size":2},"theme-default":{"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"},"showLevel":false}},"structure":{"langs":"LANGS.md","readme":"README.md","glossary":"GLOSSARY.md","summary":"SUMMARY.md"},"pdf":{"pageNumbers":true,"fontSize":12,"fontFamily":"Arial","paperSize":"a4","chapterMark":"pagebreak","pageBreaksBefore":"/","margin":{"right":62,"left":62,"top":56,"bottom":56}},"styles":{"website":"styles/website.css","pdf":"styles/pdf.css","epub":"styles/epub.css","mobi":"styles/mobi.css","ebook":"styles/ebook.css","print":"styles/print.css"}},"file":{"path":"docs/3-element.md","mtime":"2020-07-14T12:54:32.690Z","type":"markdown"},"gitbook":{"version":"3.2.3","time":"2020-07-14T15:48:00.710Z"},"basePath":"..","book":{"language":""}});
        });
    </script>
</div>

        
    <script src="../gitbook/gitbook.js"></script>
    <script src="../gitbook/theme.js"></script>
    
        
        <script src="../gitbook/gitbook-plugin-livereload/plugin.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search-engine.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-search/search.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/lunr.min.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-lunr/search-lunr.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-sharing/buttons.js"></script>
        
    
        
        <script src="../gitbook/gitbook-plugin-fontsettings/fontsettings.js"></script>
        
    

    </body>
</html>

